# encoding: utf-8
# author: 侯佳涛
# file_name: 9.requests_verify
# create_time: 2021/5/18, 下午8:55
"""
跳过CA证书验证
"""
import requests

url = 'https://sam.huat.edu.cn:8443/selfservice/'

# proxies = {
#     # 'http': 'http://106.45.104.212:3256',
#     'https': 'http://106.45.104.212:3256',
# }

# 如果不加verify = False 那么对一些有CA证书验证的网站发送请求会报错，将这个参数置为False时能够正常请求，但是会报一个警告
response = requests.get(url, verify=False)

response.encoding = 'utf-8'

print(response.text)

